<template>
	<view>
		<!-- 背景图 -->
		<image class="loginBackImage" src="@/static/img/login_new_img/loginBackImage.png" mode=""></image>

		<!-- 返回按钮 -->
		<image v-if="back" src="@/static/img/login_new_img/backBtn.png" class="backBtn" @click="backPage" mode="">
		</image>

		<!-- logo图 -->
		<view class="logoView">
			<view class="logoViewCenter">
				<image class="logo" src="@/static/img/login_new_img/loginLogo.png" mode=""></image>
				<view class="logoTitle">
					代理商管理系统
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['back'],
		data() {
			return {

			}
		},
		onShow() {

		},
		onLoad() {

		},
		methods: {
			backPage() {
				uni.redirectTo({
					url: '/pages/index/login'
				});
			}
		}
	}
</script>

<style lang="less" scoped>
	.loginBackImage {
		width: 100%;
		height: 800rpx;
		position: absolute;
		z-index: 0;
	}

	.backBtn {
		height: 44rpx;
		width: 24rpx;
		position: absolute;
		left: 25rpx;
		top: 45rpx;
		z-index: 999;
	}

	.logoView {
		padding-top: 128rpx;
		display: flex;
		justify-content: center;
		position: relative;

		.logo {
			position: relative;
			left: 50%;
			transform: translateX(-50%);
			width: calc(100rpx * 2);
			height: calc(100rpx * 2);
		}

		.logoTitle {
			font-size: 35.7rpx;
			margin-top: 25rpx;
			font-family: 'Medium', sans-serif;
			font-weight: 600;
			color: rgba(0, 0, 0, 0.8);
			letter-spacing: 1rpx;
		}
	}
</style>